package com.car.rental.common.utils;

public class StringUtils extends org.apache.commons.lang3.StringUtils {
    
    public static boolean isEmpty(Object str) {
        return str == null || str.toString().length() == 0;
    }
    
    public static boolean isNotEmpty(Object str) {
        return !isEmpty(str);
    }
    
    public static String trimToNull(String str) {
        String ts = trim(str);
        return isEmpty(ts) ? null : ts;
    }
} 